<?php
/**
	* getErrorMessage
	*
	* @author Philipp Panka <ppanka@gedak.de>
	*
	*	@return string
	*
	*/
function getMessage($CI){
	$message = $CI->session->userdata('page_message');
	$CI->session->unset_userdata('page_message');
	return $message;
}
/**
	* setInfoMessage
	*
	* @author Philipp Panka <ppanka@gedak.de>
	*
	*	@params	$message string
	*
	*/
function setMessage($CI, $type, $message){
	$data = array('message' => $message, 'type' => $type);
	$CI->session->set_userdata('page_message', $data);
}


